<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>指纹</title>
</head>

<body>
    <div>https://github.com/fingerprintjs/fingerprintjs</div>
    <script src="https://openfpcdn.io/fingerprintjs/v4/iife.min.js"></script>
    <script>
        // Initialize the agent at application startup.
        var fpPromise = FingerprintJS.load()

        // Analyze the visitor when necessary.
        fpPromise
            .then(fp => fp.get())
            .then(result => console.log(result.visitorId))
    </script>
</body>

</html>